package com.open.server.api.system;

import com.open.base.dispatch.IGeneralConfigDispatch;
import com.open.common.enums.ConfigEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页
 */
@RestController
public class HomeApi {

    @Autowired
    private IGeneralConfigDispatch generalConfigDispatch;

    /**
     * 访问首页，提示语
     */
    @RequestMapping("/")
    public String index() {
        return generalConfigDispatch.getSystemConfig(ConfigEnum.Index.getType());
    }
}